#流程控制
# for i in 'Hello':#使用for循环截取字符
#     print(i,end=",")#H,e,l,l,o
#
# for i in range(100,1000,2):#range()函数中若只有一个整数n，则会生成一组从0~n-1的整数；若只有两个整数m和n，则会生成一组从m~n-1的整数
#     print(i,end=",")

# *
# **
# ***
# ****
# *****
for i in range(1,5+1):
    for j in range(1,i+1):
        print("*",end="")
    print()

#     *
#    ***
#   *****
#  *******
# *********
# for i in range(1,5+1):
#     for j in range(1,5-i+1):
#         print(" ",end="")
#     for j in range(1,2*i):
#         print("*",end="")
#     print()
num=int(input("请输入数字(奇数):"))
for i in range(1,num+1,2):
    if i==3:
        break
    print(("*"*i).center(num+1))
#菱形
for i in range(num-2,0,-2):
    print(("*"*i).center(num+1))

# num=1
# while num<=10:
#     print(num,end=" ")
#     num += 1

# while True:
#     print("hello")永远的死循环


num=int(input("请输入数字"))
if (0<num<100):
    print("数字",num,"大于0")
    print()
    print()
else:
    print("数字",num,"小于等于0")
#

#for 临时变量 in 目标对象:
#    代码段